/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.fzhucc.modules.areaDataAll.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.io.Serializable;

/**
* @website https://eladmin.vip
* @description /
* @author yyg
* @date 2024-04-01
**/
@Entity
@Data
@Table(name="tb_area_data_all")
public class AreaDataAll implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "`id`")
    @ApiModelProperty(value = "id")
    private Integer id;

    @Column(name = "`org_area`",nullable = false)
    @NotBlank
    @ApiModelProperty(value = "地区")
    private String orgArea;

    @Column(name = "`day`",nullable = false)
    @NotBlank
    @ApiModelProperty(value = "日期")
    private String day;

    @Column(name = "`lm_sh`")
    @ApiModelProperty(value = "劳模截止日已审核通过数")
    private Integer lmSh;

    @Column(name = "`lm_wsh`")
    @ApiModelProperty(value = "劳模截止日未审核通过数")
    private Integer lmWsh;

    @Column(name = "`xq_sh`")
    @ApiModelProperty(value = "需求截止日已审核通过数")
    private Integer xqSh;

    @Column(name = "`xqw_sh`")
    @ApiModelProperty(value = "需求截止日未审核通过数")
    private Integer xqwSh;

    @Column(name = "`studio_sh`")
    @ApiModelProperty(value = "工作室截止日已审核通过数")
    private Integer studioSh;

    @Column(name = "`studio_wsh`")
    @ApiModelProperty(value = "工作室截止日未审核通过数")
    private Integer studioWsh;

    @Column(name = "`ts_sh`")
    @ApiModelProperty(value = "技术服务队截止日已审核通过数")
    private Integer tsSh;

    @Column(name = "`ts_wsh`")
    @ApiModelProperty(value = "技术服务队截止日未审核通过数")
    private Integer tsWsh;

    @Column(name = "`xq_ypp`")
    @ApiModelProperty(value = "需求截止日已匹配总数")
    private Integer xqYpp;

    @Column(name = "`xq_yjj`")
    @ApiModelProperty(value = "需求截止日已解决总数")
    private Integer xqYjj;

    @Column(name = "`zx`")
    @ApiModelProperty(value = "资讯截止日总数")
    private Integer zx;

    @Column(name = "`my_day`")
    @ApiModelProperty(value = "日期具体值")
    private Timestamp myDay;

    public void copy(AreaDataAll source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
